from DB.db import DB
db = DB('ecshop', user='root', password='root')
rows, data = db.read('select * from ecs_goods limit 5')
print(rows)
print(data)